from functional import seq
import functools

my_list = [i for i in range(1, 10)]

print(functools.reduce(lambda x1, x2: x1 * x2, my_list))

result = seq(my_list).reduce(lambda x1, x2: x1 + x2)
print(result)

